package com.byxy.po;


import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.command.BaseModel;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;


import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;


//User表
@Data
@Table(name = "User")
public class User{
    @Id
    @Column(name = "id", type = MySqlTypeConstant.INT, length = 15, isKey = true, isAutoIncrement = true)
    private Integer id;//用户id
    @Column(name = "chat_head", type = MySqlTypeConstant.VARCHAR, length = 80)
    private String chat_head;//头像
    @Column(name = "account", type = MySqlTypeConstant.INT, length = 12, isUnique = true)
    private Integer account;//账号
    @Column(name = "user_name", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String user_name;//用户名
    @Column(name = "phone", type = MySqlTypeConstant.VARCHAR, length = 11)
    private String phone;//手机号
    @Column(name = "email", type = MySqlTypeConstant.VARCHAR, length = 18)
    private String email;//邮箱
    @Column(name = "wechat_id", type = MySqlTypeConstant.VARCHAR, length = 18)
    private String wechat_id;//微信号
    @Column(name = "password", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String password;//密码
    @Column(name = "fixed_salt", type = MySqlTypeConstant.VARCHAR, length = 12, isNull = false)
    private String fixed_salt;//固定盐
    @Column(name = "user_time", type = MySqlTypeConstant.DATETIME)
    private Date user_time;//注册时间
    @Column(name = "update_time", type = MySqlTypeConstant.DATETIME)
    private Date update_time;//更新时间
    @Column(name = "detail_id", type = MySqlTypeConstant.INT, length = 15)
    private Integer detail_id;

}
